package com.qd.common.panda.domain.entity.applayfor;

import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import com.cdqidi.valid.group.DeleteGroup;
import com.cdqidi.valid.group.UpdateGroup;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * 点亮小区
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class ApplyForParkDTO extends BaseQuery {

    /**
     * 主键
     */
    @NotBlank(message = "ID不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    @Size(max = 50, message = "ID长度不能超过{max}位", groups = {DeleteGroup.class, UpdateGroup.class})
    private String id;
    /**
     * 小区名称
     */
    @NotBlank(message = "小区名称不能为空", groups = DefaultGroup.class)
    @Size(max = 100, message = "小区名称长度不能超过{max}位", groups = DefaultGroup.class)
    private String name;
    /**
     * 市
     */
    @NotBlank(message = "市不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "市长度不能超过{max}位", groups = DefaultGroup.class)
    private String city;
    /**
     * 区
     */
    @NotBlank(message = "区不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "区长度不能超过{max}位", groups = DefaultGroup.class)
    private String area;
    /**
     * 街道
     */
    @Size(max = 200, message = "街道长度不能超过{max}位", groups = DefaultGroup.class)
    private String street;
    /**
     * 道路名称/楼牌号
     */
    @NotBlank(message = "道路名称/楼牌号不能为空", groups = DefaultGroup.class)
    @Size(max = 200, message = "道路名称/楼牌号长度不能超过{max}位", groups = DefaultGroup.class)
    private String corridor;
    /**
     * 申请人电话
     */
    @Size(max = 20, message = "申请人电话长度不能超过{max}位", groups = DefaultGroup.class)
    private String mobile;
    /**
     * 添加时间
     */
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    /**
     * 处理时间
     */
    private LocalDateTime handleTime;
    /**
     * 状态:0处理中1处理成功2处理失败
     */
    private Integer state;
    /**
     * 状态显示
     */
    private String stateDisplay;
    /**
     * 说明
     */
    @Size(max = 200, message = "说明长度不能超过{max}位", groups = DefaultGroup.class)
    private String msg;
    /**
     * 用户ID
     */
    @Size(max = 50, message = "申请人ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String userId;
    /**
     * 处理人
     */
    @Size(max = 50, message = "处理人长度不能超过{max}位", groups = DefaultGroup.class)
    private String handlePersonId;
    /**
     * 处理人显示
     */
    private String handlePersonIdDisplay;
    /**
     * 处理人单位
     */
    @Size(max = 50, message = "处理人单位长度不能超过{max}位", groups = DefaultGroup.class)
    private String handleOrgId;
    /**
     * 处理人单位显示
     */
    private String handleOrgIdDisplay;

    @Override
    public void freeData() {
        this.id = null;
        this.name = null;
        this.city = null;
        this.area = null;
        this.street = null;
        this.corridor = null;
        this.mobile = null;
        this.addTime = null;
        this.updateTime = null;
        this.handleTime = null;
        this.state = null;
        this.stateDisplay = null;
        this.msg = null;
        this.userId = null;
        this.handlePersonId = null;
        this.handlePersonIdDisplay = null;
        this.handleOrgId = null;
        this.handleOrgIdDisplay = null;
        super.freeData();
    }
}
